﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DFGK_WMS.Model.Dto.YS
{
    public class BackUseingOutStockDto
    {
        /// <summary>
        /// 入库单号
        /// </summary>
        public long BillId { get; set; }
        public string BillDate { get; set; }//单据日期
        public string DepartmentNumber { get; set; }//部门名称
        public string DepartmentName { get; set; }//部门编码
        public string useing { get; set; }//领料用途
        /// <summary>
        /// 源单类型（生产投料单/报废补料单）
        /// </summary>
        public string SourceType { get; set; }
        /// <summary>
        /// 源单编号
        /// </summary>
        public string SourceNo { get; set; }

        public List<BackUseingOutStockDeatilDto> Entry { get; set; }
    }

    public class BackUseingOutStockDeatilDto
    {
        /// <summary>
        /// 物料编码
        /// </summary>
        public string Number { get; set; }

        /// <summary>
        /// 物料名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 批次号
        /// </summary>
        public string? BatchNo { get; set; }
        /// <summary>
        /// 材料规格型号
        /// </summary>
        public string Model { get; set; }
        /// <summary>
        /// 材料计量单位
        /// </summary>
        public string Unit { get; set; }
        /// <summary>
        /// 物料收货数量
        /// </summary>
        public decimal Qty { get; set; }
        /// <summary>
        /// 是否是VMI物料(从VMI仓库发料为Y,否则为N)
        /// </summary>
        public string? IsVMI { get; set; }
        public string StockNumber { get; set; }
        public string StockPlace { get; set; }
        /// <summary>
        /// 供应商代码(从VMI仓库发料必选，否则为空)
        /// </summary>
        public string SupplierNumber { get; set; }
        


    }
}
